package com.stylefeng.guns.modular.system.business.systemenum;

import com.stylefeng.guns.core.exception.ServiceExceptionEnum;

/**
 * @Description 订单的枚举
 * @author wengys
 * @date    2018/05/09
 */
public enum OrderEnum implements ServiceExceptionEnum{
	//是否中转
	ORDER_TRANSFER_YES(1,"中转"),
	ORDER_TRANSFER_NO(0,"不是中转"),
	//是否配送
	ORDER_MODE_SELF_LIFT(0,"自提"),
	ORDER_MODE_DELIVERY(1,"配送"),
	//回单状态 0 待回单  1.已回寄,2,已完成,3无需回单
	ORDER_BACK_WAIT(0,"待回单"),
	ORDER_BACK_RECEIVE(1,"已接收"),
	ORDER_BACK_TO_SENDER(2,"已回寄上家"),
	ORDER_BACK_UNNECESSARY(3,"无需回单"),
	//订单状态 0-审核中 1-待出库 2-已出库 3-完成
	ORDER_STATUS_ON_AUDIT(0,"审核中"),
	ORDER_STATUS_IN_WAREHOUSE(1,"待出库"),
	ORDER_STATUS_OUT_OF_WAREHOUSE(2,"已出库"),
	ORDER_STATUS_FINISHED(3,"完成"),
	//月结状态
	MONTHBALANCE_STATUS_SETTLED(1,"已结算"),
	MONTHBALANCE_STATUS_UNSETTLED(0,"未结算"),
	//订单流程状态
	FLOW_ORDER_OPEN(0,"开单"),
	FLOW_ORDER_TRAIN_CHECK(1,"车次核销"),
	FLOW_ORDER_OUT(2,"出库"),
	FLOW_ORDER_COLLECT_MONEY(3,"收银"),
	FLOW_ORDER_CANCEL_AFTER_VERIFICATION(4,"核销");




	OrderEnum(int code, String message) {
		this.code = code;
		this.message = message;
	}
	
	private Integer code;

	private String message;

	@Override
	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	@Override
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
